#ifndef COPYRIGHTDIALOG_H
#define COPYRIGHTDIALOG_H

#include <QDialog>
#include <QStandardItemModel>
#include "../CommunicateDelegate/hmicommunicate.h"

namespace Ui {
class CopyRightDialog;
}

class CopyRightDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CopyRightDialog(int styleId,QWidget *parent = 0);
    ~CopyRightDialog();

    QStandardItemModel *hmiModel;

    QStandardItemModel *controllerModel;

    /**
     * @brief updateView　更新设置数据到界面控件
     */
    void updateView();

    void changeLanguage();

    void initialDisplayStyle(int styleId);

public:
    /**
     * @brief hmiComponentVersionList　示教器组件版本信息
     */
    QVector<ComponentVersion> hmiComponentVersionList;
    /**
     * @brief controllerComponentVersionList　控制器组件版本信息
     */
    QVector<ComponentVersion> controllerComponentVersionList;

    /**
     * @brief hmiMainVersion　示教器主程序版本
     */
    QString hmiMainVersion;
    /**
     * @brief controllerMainVersion　控制器主程序版本
     */
    QString controllerMainVersion;

private slots:
    void on_returnBtn_clicked();

private:
    Ui::CopyRightDialog *ui;
};

#endif // COPYRIGHTDIALOG_H
